<?php

$inpfile = "nabton_test_data.txt";

$ix = 0;
$handle = fopen($inpfile, "r");
if ($handle) {
    while (($line = fgets($handle)) !== false) {
// 00 01 48.879002384277 390.159 1
        sscanf($line, "%d %d %f %f %d", $hour, $min, $sec, $pow, $pulse);
        $ix++;
        $xx[$ix] = $hour*3600 + $min*60 + $sec;
        $yy[$ix] = $pow;
    }
} else {
    echo("Error open file $inpfile");
} 
fclose($handle);
$xx[0] = $ix;

for($ii = 0;$ii<=$xx[0];$ii++)
{
echo("$xx[$ii], $yy[$ii]\n");
}



?>
